/*
  Name: serveur.h
  Copyright: none
  Author: ghannam
  Date: 14/10/06 10:34
  Description: 
*/
#ifndef __Veille_h__ 
#define __Veille_h__ 

#include <winsock2.h>
#include   <ctype.h>
#include  <time.h>
#include <string>

#include "ClientVeille.h"

using namespace std;
class Veille;

struct thread_param{
       Veille* ser;
       
};


class Veille{
	private: 
 
	 
		DWORD         AffichageThread(void); 
		DWORD         CalculThread(void); 
		
		
                                     
	 
	 	public:           
		 
		int                 demarrer ();  
		SOCKET  getSocket();
   
	 
		
		static DWORD WINAPI CalculThread(void *p){
			struct thread_param *Obj = reinterpret_cast<struct thread_param*>(p);               
			Veille *s = Obj->ser;                          
			return s->CalculThread();       
		}
		
}; 



#endif
